package com.springcloud.demo.servera.service;

import com.springcloud.demo.base.po.ServerA;
import com.springcloud.demo.servera.mapper.IServerAMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public class ServerAServiceImpl {

    @Autowired
    private IServerAMapper serverAMapper;

    public void insert() {
        ServerA serverA = ServerA.builder()
                .name("服务A")
                .insertDate(new Date())
                .build();
        serverAMapper.insert(serverA);
    }
}
